package ch2.ex4;

import static ch2.ex1.Print.*;

class CalculateVelovity {
	public float calculate(float ff, float tt) {
		if (tt == 0)
			return 0f;
		else
			return ff/tt;
	}
}

public class VelocityTester {
	public static void main(String[] args) {
		float f = 345.6f;
		float t = 9f;
		println("Distance - " + f);
		println("Time - " + t);
		CalculateVelovity cv = new CalculateVelovity();
		println("Velocity - " + cv.calculate(f, t));
	}
}
